package com.go.websocket;

import com.go.dto.JsonDtoWrapper;
import com.go.enums.ApiCode;
import com.go.websocket.dto.MessageInfo;
import com.go.websocket.dto.SendMessageReq;
import com.google.gson.Gson;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service("messageService")
public class MessageService {

    //发送websocket消息给pc大屏
    public JsonDtoWrapper sendSingnalToPC(int clientID, String data) {
        MessageInfo mi = new MessageInfo();
        mi.setReceiveID(clientID+"");
        mi.setData(data);
        return WebSocketService.sendMessage(mi);
    }

}
